package com.yupi.mianshiya.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.mianshiya.model.dto.paper.PaperQueryRequest;
import com.yupi.mianshiya.model.entity.Paper;

import java.util.List;


public interface PaperService extends IService<Paper> {
    /**
     * 随机题目
     *
     * @param limit
     * @param questionbankid
     * @return
     */
    List<Paper> listRandom(int limit, long questionbankid);


    /**
     * 获得查询条件的 QueryWrapper
     * @param paperQueryRequest
     * @return
     */
    QueryWrapper<Paper> getQueryWrapper(PaperQueryRequest paperQueryRequest);
}
